<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="ColorRGB,jp.raohmaru.geom.ColorRGB,b,brightness,contrast,g,r,tintMultiplier,clone,shift,toHexString,toString" name="keywords">
<title>jp.raohmaru.geom.ColorRGB</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ColorRGB - Raohmaru AS3 Framework';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Raohmaru AS3 

Framework</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?jp/raohmaru/geom/ColorRGB.html&amp;jp/raohmaru/geom/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ColorRGB</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ColorRGB"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">jp.raohmaru.geom</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ColorRGB</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">ColorRGB <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.geom.ColorTransform</td>
</tr>
</table>
<p></p>
 La clase ColorRGB amplía la clase ColorTransform de Flash Player, e incorpora la capacidad de controlar la tinta, el brillo, el contrase, obtener el valor
 de los componentes RGB y desplazar el valor de los mismos.
 <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#b">b</a> : int<div class="summaryTableDescription">
 Define o obtiene el valor del canal azul (de 0 a 255).</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#brightness">brightness</a> : Number<div class="summaryTableDescription">
  Porcentaje de brillo, expresado como número decimal entre -1 y 1.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#contrast">contrast</a> : Number<div class="summaryTableDescription">
  Cantidad de contraste a aplicar.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#g">g</a> : int<div class="summaryTableDescription">
 Define o obtiene el valor del canal verde (de 0 a 255).</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#r">r</a> : int<div class="summaryTableDescription">
 Define o obtiene el valor del canal rojo (de 0 a 255).</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tintMultiplier">tintMultiplier</a> : Number<div class="summaryTableDescription">
  Porcentaje que se aplica al color de la tinta, expresado como valor decimal entre 0 y 1.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ColorRGB()">ColorRGB</a>(color:uint = 0)</div>
<div class="summaryTableDescription">
  Crea un objeto ColorRGB.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>():<a href="../geom/ColorRGB.html">ColorRGB</a>
</div>
<div class="summaryTableDescription">
  Devuelve una copia del objeto ColorRGB en cuestión.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#shift()">shift</a>(value:int):<a href="../geom/ColorRGB.html">ColorRGB</a>
</div>
<div class="summaryTableDescription">
  Desplaza los componentes de color RGB la cantidad especificada.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toHexString()">toHexString</a>():String</div>
<div class="summaryTableDescription">
  Formatea y devuelve una cadena que describe el color RGB en hexadecimal.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>():String</div>
<div class="summaryTableDescription">
  Formatea y devuelve una cadena que describe todas las propiedades <code>r</code>, <code>g</code>, y <code>b</code> objeto ColorRGB.</div>
</td><td class="summaryTableOwnerCol">ColorRGB</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="b"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">b</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>b:int</code>&nbsp;&nbsp;[read-write]<p>
 Define o obtiene el valor del canal azul (de 0 a 255).
 Cuando define esta propiedad, cambia en consecuencia el valor desplazamiento de color <code>blueOffset</code> y el valor de multiplicador de color
 <code>blueMultiplier</code>.
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get b():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set b(value:int):void</code>
<br>
</div>
<a name="brightness"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">brightness</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>brightness:Number</code>&nbsp;&nbsp;[read-write]<p>
  Porcentaje de brillo, expresado como número decimal entre -1 y 1. Los valores positivos iluminan el objeto y un valor de 1 convierte el objeto en un objeto
  totalmente blanco. Los valores negativos oscurecen el objeto y un valor de -1 convierte el objeto en un objeto totalmente negro.<br><br>
  Esta propiedad no modifica los valores RGB.
  </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get brightness():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set brightness(value:Number):void</code>
<br>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 import jp.raohmaru.utils.types.ColorRGB;
 
 var color : ColorRGB = new ColorRGB(0xFFCC00);
  color.brightness = 1;
  color.tintMultiplier = .5;
  
 some_mc.transform.colorTransform = color;
 </pre></div>
  <p></p>
</div>
<a name="contrast"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">contrast</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>contrast:Number</code>&nbsp;&nbsp;[read-write]<p>
  Cantidad de contraste a aplicar. Los valores van desde -1 (sin contrase), 0 (normal) a 8+ (muy contrastado).<br>
  Esta propiedad no modifica los valores RGB.
  </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get contrast():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set contrast(value:Number):void</code>
<br>
</div>
<a name="g"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">g</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>g:int</code>&nbsp;&nbsp;[read-write]<p>
 Define o obtiene el valor del canal verde (de 0 a 255).
 Cuando define esta propiedad, cambia en consecuencia el valor desplazamiento de color <code>greenOffset</code> y el valor de multiplicador de color
 <code>greenMultiplier</code>.
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get g():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set g(value:int):void</code>
<br>
</div>
<a name="r"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">r</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>r:int</code>&nbsp;&nbsp;[read-write]<p>
 Define o obtiene el valor del canal rojo (de 0 a 255).
 Cuando define esta propiedad, cambia en consecuencia el valor desplazamiento de color <code>redOffset</code> y el valor de multiplicador de color
 <code>redMultiplier</code>.
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get r():int</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set r(value:int):void</code>
<br>
</div>
<a name="tintMultiplier"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tintMultiplier</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>tintMultiplier:Number</code>&nbsp;&nbsp;[read-write]<p>
  Porcentaje que se aplica al color de la tinta, expresado como valor decimal entre 0 y 1. Cuando <code>tintMultiplier = 0</code>, el objeto de destino mantiene su color original
  y no se puede ver ningún color de tinta. Cuando <code>tintMultiplier = 1</code>, el objeto de destino se colorea por completo y no se puede ver su color original.<br><br>
  Esta propiedad no modifica los valores RGB.
  </p><p>The default value is <code>0</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get tintMultiplier():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set tintMultiplier(value:Number):void</code>
<br>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 import jp.raohmaru.utils.types.ColorRGB;
 
 var color : ColorRGB = new ColorRGB(0xFFCC00);
  color.tintMultiplier = 1;
  
 some_mc.transform.colorTransform = color;
 </pre></div>
  <p></p>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ColorRGB()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ColorRGB</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ColorRGB(color:uint = 0)</code><p>
  Crea un objeto ColorRGB.
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">color</span>:uint</code> (default = <code>0</code>)<code></code> &mdash; Un valor de color en hexadecimal (p. ej. 0xFFCC00).
  </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 import jp.raohmaru.utils.types.ColorRGB;
 
 var color : ColorRGB = new ColorRGB(0xFFCC00);</pre></div>
  <p></p>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function clone():<a href="../geom/ColorRGB.html">ColorRGB</a></code><p>
  Devuelve una copia del objeto ColorRGB en cuestión.
  </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../geom/ColorRGB.html">ColorRGB</a></code> &mdash; 
                        La copia del objeto
  
                        
                     </td>
</tr>
</table>
</div>
<a name="shift()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">shift</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function shift(value:int):<a href="../geom/ColorRGB.html">ColorRGB</a></code><p>
  Desplaza los componentes de color RGB la cantidad especificada.
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:int</code> &mdash; La cantidad a desplazar
  </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../geom/ColorRGB.html">ColorRGB</a></code> &mdash; 
                        Una referencia al objeto ColorRGB
  
                        
                     </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 import jp.raohmaru.utils.types.ColorRGB;
 
 var color : ColorRGB = new ColorRGB();
 trace(color.shift(25));  // (r=25, g=25, b=25)</pre></div>
  <p></p>
</div>
<a name="toHexString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toHexString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toHexString():String</code><p>
  Formatea y devuelve una cadena que describe el color RGB en hexadecimal.
  </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash; Una cadena que describe el color RGB en hexadecimal
  </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br> <div class='listing'><pre>
 import jp.raohmaru.utils.types.ColorRGB;
 
 var color : ColorRGB = new ColorRGB();
  color.r = 10;
  color.g = 125;
 trace(color.toHexString());  // #0a7d00</pre></div>
  <p></p>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function toString():String</code><p>
  Formatea y devuelve una cadena que describe todas las propiedades <code>r</code>, <code>g</code>, y <code>b</code> objeto ColorRGB.
  </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash; Una cadena que muestra las propiedades <code>r</code>, <code>g</code>, y <code>b</code> objeto ColorRGB
  </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://www.raohmaru.com</center>
</div>
</body>
</html>
<!--http://www.raohmaru.com-->
